package com.kanshu.ksgb.fastread.doudou.app.constants;

/**
 * 常用常量存放类
 */
public interface Constants {
    String SP_NAME = "config";
    String SP_READ_NAME = "config_read_progress";
    String USER_ID = "user_id";
    String USER_BIND_PHONE = "user_bind_phone";
    String USER_SEX = "user_sex";
    String IS_FIRST_ENTRY_READER = "is_first_entry_reader";
    String IS_FIRST_ENTRY_APP = "is_first_entry_app";
    String SIGN_STATUS = "sign_status";
    String IS_READ = "is_read";
    String IS_FIRST_LAUNCH_APP = "is_first_launch_app";
    String REGISTER_DEVICE_ID = "register_device_id";
    String IS_AUTO_UPDATE = "is_auto_update";
    String VERSION_UPDATE_TIME = "version_update_time";
    String LOGIN_TYPE = "third_login_type";
    String WX_LOGIN = "wx_login";
    String QQ_LOGIN = "qq_login";
    String SINA_LOGIN = "sina_login";
    String NICK_NAME = "nick_name";
    String HEADER_IMG = "header_img";
    String IS_AUTO_BUY = "is_auto_buy";
    String JPUSH_REG_ID = "jpush_reg_id";
    String PAY_INFO = "pay_info";
    public static String AD_CONFIG = "adConfig";
    // 后台定义跳转值
    int JUMP_TYPE_READER = 1;// 1.跳转书阅读器，2.url,3纯文本 4.书id跳转书详情
    int JUMP_TYPE_H5 = 2;
    int JUMP_TYPE_NONE = 3;
    int JUMP_TYPE_BOOK_DETAIL = 4;
    int JUMP_TYPE_SIGN = 5;
    // 后台定义值
    String TYPE_SECRET = "0";
    String TYPE_MALE = "1";
    String TYPE_FEMALE = "2";
    // 第三方账户信息
    String TYPE_LOGIN_BY_WX = "WEIXIN";
    String TYPE_LOGIN_BY_QQ = "QQ";
    String TYPE_LOGIN_BY_SINA = "WEIBO";

    // 极光推送的通知栏事件
    String PUSH_RECEIVER_ACTION = "push_receviver_action";

    // 下载失败信息默认长度
    int DOWNLOAD_FAILINFO_DEFAULT_LENGTH = 4;

    /**
     * 后台业务码
     */
    final class ErrCode {
        // 成功
        public static final int SUCCESS = 0;
        // 网络异常
        public static final int NetErr = -1;
        // 没有数据
        public static final int NoData = -11282;
        // 没有登录
        public static final int NoLogin = -2;
        // 网络未知异常
        public static final int UnknowErr = -100;
        // 账户余额不足
        public static final int InsufficientBalance = 70100;
        // 写入订单失败
        public static final int FailToWriteOrder = 70101;
        // 账户余额不足，扣费失败
        public static final int FailToConsumeByBalance = 70102;
        // 消费记录失败
        public static final int FailToConsume = 70103;
        // 此章节需要购买后才能阅读
        public static final int BuyToRead = 91000;
        // 书籍已经下架
        public static final int Offline = 21021;
    }

    /**
     * 支付类型
     */
    final class PayType {
        public static final int TYPE_WX = 5;
        public static final int TYPE_ALI = 6;
    }

    //进入性别选择是场景
    String TYPE_SCENE_SPLASH = "0";
    String TYPE_SCENE_PERSON_CENTER = "1";
    public final static int CENTER = Integer.MAX_VALUE;

    /**
     * 推荐位id参数
     */
    final class RecommandCategoryId {
        // 首页轮播\图
        public static final String FirstPageBanner = "shouyelunbo";
        // 完本
        public static final String End = "wanben";
        // 新书
        public static final String NewBook = "xinshu";
        // 人气作品
        public static final String Popularity = "renqizuopin";
        // 畅销作品
        public static final String Selling = "changxiaozuopin";
        // 限免作品
        public static final String FreeList = "xianmianzuopin";
        // 主编力荐
        public static final String EditorRecommand = "zhubianlijian";
        // 读者推荐
        public static final String ReaderRecommand = "duzhetuijian";
        // 经典完本
        public static final String ClassicEnd = "jingdianwanben";
        // 最新入库
        public static final String NewStorage = "zuixinruku";
        // 热门搜索
        public static final String HotSearch = "remensousuo";
        // 启动页
        public static final String Launch = "qidongye";
        // 搜索为空推荐
        public static final String SearchRecommend = "sousuoweikongtuijian";
    }


    //服务器定义值(// 当天是否签到，1是，0否)
    int SIGN_IN_NO = 0;
    int SIGN_IN_YES = 1;

    int MALE = 1;
    int FEMALE = 2;
    int UNKNOWN = 0;


    final class BookCityTabType {
        public static final int TYPE_SELECTED = 0;
        public static final int TYPE_MALE = 1;
        public static final int TYPE_FEMALE = 2;
    }

    /**
     * 书城banner type
     */
    final class BookCityBannerType {
        // 精选banner
        public static final String TYPE_SELECTED = "jingxuan_lunbotu";
        // 男频banner
        public static final String TYPE_MALE = "nanpin_lunbotu";
        // 女频banner
        public static final String TYPE_FEMALE = "nvpin_lunbotu";
    }

    final class BookCityModuleType {
        // 精选 - 重磅推荐
        public static final String TYPE_SELECTED_ZHONGBANGTUIJIAN = "jingxuan_zhongbangtuijan";
        // 精选 - 精选好书
        public static final String TYPE_SELECTED_JINGXUANHAOSHU = "jingxuan_jingxuanhaoshu";
        // 精选 - 完结经典
        public static final String TYPE_SELECTED_WANJIEJINGDIAN = "jingxuan_wanjiejingdian";
        // 精选 - 终极诱惑
        public static final String TYPE_SELECTED_ZHONGJIYOUHUO = "jingxuan_zhongjiyouhuo";
        // 精选 - 私人定制
        public static final String TYPE_SElECTED_SIREMDINGZHI = "jingxuan_zhuanti_small";
        // 精选 - 专题
        public static final String TYPE_SELECTED_ZHUANTI = "jingxuan_zhuanti_large";
        // 精选 - 本周强推
        public static final String TYPE_SELECTED_BENZHOUQIANGTUI = "jingxuan_benzhouqiangtui";
        // 精选 - 全站畅读
        public static final String TYPE_SELECTED_QUANZHANCHANGDU = "jingxuan_quanzhanchangdu";
        // 精选 - 人气专区
        public static final String TYPE_SELECTED_RENQIZHUANQU = "jingxuan_renqizhuanqu";
        // 精选 - 新书抢先
        public static final String TYPE_SELECTED_XINSHUQIANGXIAN = "jingxuan_xinshuqiangxian";
        // 精选 - 热门标签
        public static final String TYPE_SElECTED_REMENBIAOQIAN = "jingxuan_remenbiaoqian";
        // 女频 - 本周热搜
        public static final String TYPE_FEMALE_BENZHOURESOU = "nvpin_benzhouresou";
        // 女频 - 力荐
        public static final String TYPE_FEMALE_LIJIAN = "nvpin_lijian";
        // 女频 - 全本
        public static final String TYPE_FEMALE_QUANBEN = "nvpin_quanben";
        // 女频 - 经典
        public static final String TYPE_FEMALE_JINGDIAN = "nvpin_jingdian";
        // 女频 - 人气
        public static final String TYPE_FEMALE_RENQI = "nvpin_renqizhuanqu";
        // 女频 - 热门标签
        public static final String TYPE_FEMALE_REMENBIAOQIAN = "nvpin_remenbiaoqian";
        // 女频 - 宫闱情仇
        public static final String TYPE_FEMALE_GONGWEIQINGCHOU = "nvpin_gongweiqingchou";
        // 女频 - 架空历史
        public static final String TYPE_FEMALE_JIAKONGLISHI = "nvpin_jiakonglishi";
        // 女频 - 总裁豪门
        public static final String TYPE_FEMALE_ZONGCAIHAOMEN = "nvpin_zongcaihaomen";
        // 女频 - 热门分类
        public static final String TYPE_FEMALE_REMENFENLEI = "nvpin_remenfenlei";
        // 女频 - 换分类1
        public static final String TYPE_FEMALE_HUANFENLEI1 = "nvpin_huanfenlei_1";
        // 女频 - 换分类2
        public static final String TYPE_FEMALE_HUANFENLEI2 = "nvpin_huanfenlei_2";
        // 女频 - 换分类3
        public static final String TYPE_FEMALE_HUANFENLEI3 = "nvpin_huanfenlei_3";
        // 男频 - 本周热搜
        public static final String TYPE_MALE_BENZHOURESOU = "nanpin_benzhouresou";
        // 男频 - 男频经典
        public static final String TYPE_MALE_NANPINJINGDIAN = "nanpin_nanpinjingdian";
        // 男频 - 完结精品
        public static final String TYPE_MALE_WANJIEJINGDIAN = "nanpin_wanjiejingdian";
        // 男频 - 人气专区
        public static final String TYPE_MALE_RENQIZHUANQU = "nanpin_renqizhuanqu";
        // 男频 - 热门标签
        public static final String TYPE_MALE_REMENBIAOQIAN = "nanpin_remenbiaoqian";
        // 男频 - 私人订制
        public static final String TYPE_MALE_SIRENDINGZHI = "nanpin_sirendingzhi";
        // 男频 - 都市生活
        public static final String TYPE_MALE_DUSHISHENGHUO = "nanpin_dushishenghuo";
        // 男频 - 玄幻科幻
        public static final String TYPE_MALE_XUANHUANKEHUAN = "nanpin_xuanhuankehuan";
        // 男频 - 热门分类
        public static final String TYPE_MALE_REMENFENLEI = "nanpin_remenfenlei";
        // 男频 - 换分类2
        public static final String TYPE_MALE_HUANFENLEI1 = "nanpin_huanfenlei_2";
        // 男频 - 换分类1
        public static final String TYPE_MALE_HUANFENLEI2 = "nanpin_huanfenlei_1";
        // 男频 - 换分类3
        public static final String TYPE_MALE_HUANFENLEI3 = "nanpin_huanfenlei_3";
        // 精选 - 男频完本
        public static final String TYPE_MALE_FINISHED = "jingxuan_nanpinrenqiwanben";
        // 精选 - 女频完本
        public static final String TYPE_FEMALE_FINISHED = "jingxuan_nvpinrenqiwanben";
        // 精选 - 专题 - banner
        public static final String TYPE_TOPIC_BANNER = "jingxuan_zhuantihuodong";
        // 发现 - 书单 - banner
        public static final String TYPE_FIND_BANNER = "faxianye_huodongzhuanqu";
        // 发现 - 书单列表
        public static final String TYPE_FIND_LIST = "faxianye_shudanliebiao";
        // 搜索 - 热门标签
        public static final String TYPE_SEARCH_HOT = "search_remenbiaoqian";
    }

    final class LoginState {
        public static final int TYPE_NO_LOGIN = 0;
        public static final int TYPE_HAS_LOGIN = 200;
    }

    //Book Date Convert Format
    public static final String FORMAT_TIME = "HH:mm";

    final class ScreenOnParams {
        public static final int SCREEN_ON_3_MIN = 3;
        public static final int SCREEN_ON_5_MIN = 5;
        public static final int SCREEN_ON_10_MIN = 10;
        public static final int SCREEN_ON_OFTEN = 10000;
    }
}
